package com.yourcompany.api.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yourcompany.common.utils.CustomLongSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "菜单VO")
public class MenuVO {
    @JsonSerialize(using = CustomLongSerializer.class)
    @Schema(description = "菜单ID")
    private Long id;
    @JsonSerialize(using = CustomLongSerializer.class)
    @Schema(description = "父级菜单ID")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单标识")
    private String code;

    @Schema(description = "菜单路径")
    private String path;

    @Schema(description = "前端组件路径")
    private String component;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "排序值")
    private Integer sort;

    @Schema(description = "状态：0-禁用 1-启用")
    private Boolean status;

    @Schema(description = "是否显示")
    private Boolean isVisible;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "子菜单")
    private List<MenuVO> children;
} 